package com.baselibrary.test.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.baselibrary.libs.View.bar.initAction_Bar;
import com.baselibrary.libs.base.baseActivity.BaseActivity;
import com.baselibrary.test.MVP.Main10Activity.contract.Main10Contract;
import com.baselibrary.test.MVP.Main10Activity.presenter.Main10Presenter;
import com.baselibrary.test.R;
import com.baselibrary.test.app.AppContext;

/**
 * 通知栏activity
 */
public class Main10Activity extends BaseActivity implements View.OnClickListener, Main10Contract.View {

    private Button mButton1;
    private Main10Presenter mPresenter;
    private initAction_Bar action_bar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public int getlayouXML() {
        return R.layout.activity_main10;
    }

    @Override
    public void initP() {
        mPresenter = new Main10Presenter(this);
    }

    @Override
    public void initView() {
        mButton1 = (Button) findViewById(R.id.button1);
        mButton1.setOnClickListener(this);


        initData();
        action_bar = (initAction_Bar) findViewById(R.id.action_bar);
        action_bar.set_Title("通知栏");
    }

    @Override
    public void initData() {

    }

    @Override
    public void initListener() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.button1:
                mPresenter.startNotfly(AppContext.getApplication());
                break;
        }
    }
}
